package cn.edu.scau.cmi.linhuanrui.adapter;

import java.util.List;

public class SortUtil {
	public void sortInt(List<Integer> intList) {
		for (int i = 0; i < intList.size() - 1; i++) {
			for (int j = 0; j < intList.size() - i - 1; j++) {
				if (intList.get(j) > intList.get(j + 1)) {
					int temp = intList.get(j);
					intList.set(j, intList.get(j + 1));
					intList.set(j + 1, temp);
				}
			}
		}

	}

}
